Skip to content

Avoid LDAP TAP tests when not built with LDAP#39

Open
theory wants to merge 1 commit intoPGBuildFarm:mainfrom
theory:skip-ldap-tests
Open

Avoid LDAP TAP tests when not built with LDAP#39
theory wants to merge 1 commit intoPGBuildFarm:mainfrom
theory:skip-ldap-tests

Conversation

@theory
Copy link
Contributor

@theory theory commented Jun 30, 2025

Since run_misc_tests() globs the test directories for test modules and runs them directly, the if ($ENV{with_ldap} ne 'yes') bits of the Makefile for ldap_password_func, at least, doesn't seem to trigger properly. So follow the precedent of checking for SSL configuration and skip LDAP tests when --with-ldap (or equivalent) hasn't been specified.

This presumably wont't come up previously unless TAP tests were enabled and LDAP was not configured.

Since `run_misc_tests()` globs the test directories for test modules and
runs them directly, the `if ($ENV{with_ldap} ne 'yes')` bits of the
`Makefile` for `ldap_password_func`, at least, doesn't seem to trigger
properly. So follow the precedent of checking for SSL configuration and
skip LDAP tests when `--with-ldap` (or equivalent) hasn't been
specified.

This presumably wont't come up previously unless TAP tests were enabled
and LDAP was not configured.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant